const api = require('../../api/index.js');
const App = getApp()
Page({
    data: {
        trips: [],
        start: 0,
        loading: false,
        windowWidth: App.systemInfo.windowWidth,
        windowHeight: App.systemInfo.windowHeight,
        username:'',
        isLogin:App.isLogin
    },
    onLoad() {
        api.getUser({
                data: '65bb2b422c3a59d8e098b0c0'
            })
            .then(res => {
                const {username} = res.user
                this.setData({
                    username
                })
                
            })
    },
    
});